package com.ynny.task01;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Scanner;

public class Province {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[] args) {
        System.out.println("云南省 广东省 安徽省 河南省 四川省");
        System.out.println("请选择您所在的省份：");


        while (true) {


            HashMap<String, ArrayList<String>> HashMap = new HashMap<>();

            ArrayList<String> list = new ArrayList<>();
            list.add("昭通，昆明，曲靖，红河，丽江，文山");
            HashMap.put("云南", list);
            String next = scanner.next();
            ArrayList<String> strings = HashMap.get(next);
            System.out.println(strings);
            System.out.println("请选择您所在的城市：");

            HashMap<String, ArrayList<String>> HashMap2 = new HashMap<>();
            ArrayList<String> list1 = new ArrayList<>();
            list1.add("信息登记完毕！");
            HashMap2.put("昭通", list1);
            String next1 = scanner.next();
            ArrayList<String> strings1 = HashMap2.get(next1);
            System.out.println(strings1);
        }


    }
}